package com.entity.patient;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 病例
 * caseID：病例ID
 * patientsID:患者ID
 * doctorID:医生ID
 * dt:创建时间
 * state：状态
 */
public class Case {
    private Integer caseID;
    private Integer patientID;
    private  Integer doctorID;
    private String dt;
    private String state;

    public Case() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        this.dt = df.format(new Date());
        this.state = "pending";
    }

    @Override
    public String toString() {
        return "Case{" +
                "caseID=" + caseID +
                ", patientID=" + patientID +
                ", doctorID=" + doctorID +
                ", dt='" + dt + '\'' +
                ", state='" + state + '\'' +
                '}';
    }

    public Integer getCaseID() {
        return caseID;
    }

    public void setCaseID(Integer caseID) {
        this.caseID = caseID;
    }

    public Integer getPatientID() {
        return patientID;
    }

    public void setPatientID(Integer patientID) {
        this.patientID = patientID;
    }

    public Integer getDoctorID() {
        return doctorID;
    }

    public void setDoctorID(Integer doctorID) {
        this.doctorID = doctorID;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
